
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>快速上手 · smartboot 中文指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="./" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    关于smartboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    smart-socket 使用手册
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="./">
            
                <a href="./">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="quickStart.html">
            
                <a href="quickStart.html">
            
                    
                    快速上手
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" >
            
                <span>
            
                    
                    源码篇
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="first/1-ready.html">
            
                <a href="first/1-ready.html">
            
                    
                    准备工作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="first/2-core-interface.html">
            
                <a href="first/2-core-interface.html">
            
                    
                    核心接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="first/3-enum.html">
            
                <a href="first/3-enum.html">
            
                    
                    枚举状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.4" data-path="first/4-IoServerConfig.html">
            
                <a href="first/4-IoServerConfig.html">
            
                    
                    服务配置IoServerConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.5" data-path="first/5-AioQuickServer.html">
            
                <a href="first/5-AioQuickServer.html">
            
                    
                    服务端AioQuickServer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.6" data-path="first/6-AioQuickClient.html">
            
                <a href="first/6-AioQuickClient.html">
            
                    
                    客户端AioQuickClient
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.7" data-path="first/7-AioSession.html">
            
                <a href="first/7-AioSession.html">
            
                    
                    通信会话AioSession
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.8" data-path="first/8-CompletionHandler.html">
            
                <a href="first/8-CompletionHandler.html">
            
                    
                    读写回调
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" >
            
                <span>
            
                    
                    进阶篇
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="second/readme.html">
            
                <a href="second/readme.html">
            
                    
                    开篇概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="second/2-decoder.html">
            
                <a href="second/2-decoder.html">
            
                    
                    协议解码器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="second/3-type-one.html">
            
                <a href="second/3-type-one.html">
            
                    
                    一类消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.4" data-path="second/4-type-two.html">
            
                <a href="second/4-type-two.html">
            
                    
                    二类消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.5" data-path="second/5-type-three.html">
            
                <a href="second/5-type-three.html">
            
                    
                    三类消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.5" >
            
                <a target="_blank" href="https://smartboot.github.io/smart-socket/apidocs/index.html">
            
                    
                    API Docs
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    smart-ioc 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    smart-boot 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    mydalgen 使用手册
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    技术分享
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../share/rpc/smart-socket-rpc.html">
            
                <a href="../share/rpc/smart-socket-rpc.html">
            
                    
                    smart-socket实现RPC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../share/exception/readme.html">
            
                <a href="../share/exception/readme.html">
            
                    
                    Exception杂谈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../donation.html">
            
                <a href="../donation.html">
            
                    
                    关于捐赠
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >快速上手</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>&#x6280;&#x672F;&#x624B;&#x518C;&#x7684;&#x539A;&#x5EA6;&#xFF0C;&#x4F53;&#x73B0;&#x4E86;&#x6846;&#x67B6;&#x7684;&#x5B66;&#x4E60;&#x96BE;&#x5EA6;&#x3002;smart-socket&#x7684;&#x5B66;&#x4E60;&#x6210;&#x672C;&#x6B62;&#x4E8E;&#x672C;&#x7AE0;&#x8282;&#xFF0C;&#x4E4B;&#x540E;&#x5404;&#x7BC7;&#x4E3A;&#x5BF9;smart-socket&#x7684;&#x6E90;&#x7801;&#x89E3;&#x8BFB;&#xFF0C;&#x5404;&#x4F4D;&#x770B;&#x5B98;&#x53EF;&#x914C;&#x60C5;&#x9009;&#x8BFB;&#x3002;
&#x4E0B;&#x56FE;&#x5373;&#x4E3A;&#x7528;&#x6237;&#x7684;&#x5B66;&#x4E60;&#x56FE;&#x8C31;&#xFF0C;&#x638C;&#x63E1;&#x56FE;&#x4E2D;&#x51E0;&#x4E2A;&#x63A5;&#x53E3;&#x4FBF;&#x53EF;&#x8FD0;&#x7528;smart-socket&#x5B8C;&#x6210;&#x901A;&#x4FE1;&#x5F00;&#x53D1;&#x3002;
<img src="images/uml.png" alt="uml"></p>
<p>&#x8FD0;&#x7528;smart-socket&#x8FDB;&#x884C;&#x901A;&#x4FE1;&#x5F00;&#x53D1;&#xFF0C;<strong>&#x6211;&#x4EEC;&#x552F;&#x4E00;&#x8981;&#x6C42;&#x7684;&#x6280;&#x672F;&#x95E8;&#x69DB;&#x4E3A;&#xFF1A;&#x719F;&#x7EC3;&#x638C;&#x63E1;ByteBuffer</strong>&#x3002;&#x81F3;&#x4E8E;JDK&#x63D0;&#x4F9B;&#x7684;&#x901A;&#x4FE1;&#x76F8;&#x5173;&#x7684;API&#xFF0C;smart-socket&#x5DF2;&#x7ECF;&#x5B8C;&#x5168;&#x5C01;&#x88C5;&#x597D;&#x4E86;&#xFF0C;&#x8FD1;&#x4E00;&#x6B65;&#x964D;&#x4F4E;&#x4E86;AIO&#x901A;&#x4FE1;&#x7684;&#x4F7F;&#x7528;&#x590D;&#x6742;&#x5EA6;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x5BF9;&#x5176;&#x611F;&#x5174;&#x8DA3;&#x53EF;&#x9605;&#x8BFB;smart-socket&#x6E90;&#x7801;&#x501F;&#x9274;&#x4E00;&#x4E0B;&#x3002;</p>
<h2 id="maven&#x4F9D;&#x8D56;">Maven&#x4F9D;&#x8D56;</h2>
<p>smart-socket&#x5DF2;&#x4E0A;&#x4F20;&#x81F3;Maven&#x4ED3;&#x5E93;&#xFF0C;&#x4F7F;&#x7528;&#x524D;&#x9700;&#x8981;&#x5411;&#x5176;&#x5F15;&#x5165;&#x60A8;&#x7684;&#x9879;&#x76EE;&#x5DE5;&#x7A0B;&#x4E2D;&#x3002;</p>
<pre><code class="lang-xml"><span class="hljs-comment">&lt;!-- https://mvnrepository.com/artifact/org.smartboot.socket/aio-core --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.smartboot.socket<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>aio-core<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>1.3.11<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
</code></pre>
<h2 id="&#x901A;&#x4FE1;&#x5F00;&#x53D1;">&#x901A;&#x4FE1;&#x5F00;&#x53D1;</h2>
<p>&#x57FA;&#x4E8E;smart-socket&#x8FDB;&#x884C;&#x901A;&#x4FE1;&#x670D;&#x52A1;&#x7684;&#x5F00;&#x53D1;&#xFF0C;&#x4E3B;&#x8981;&#x6709;&#x4E09;&#x4E2A;&#x6B65;&#x9AA4;&#xFF1A;</p>
<ol>
<li>&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;</li>
<li>&#x6D88;&#x606F;&#x5904;&#x7406;</li>
<li>&#x542F;&#x52A8;&#x670D;&#x52A1;</li>
</ol>
<p>&#x63A5;&#x4E0B;&#x6765;&#x6211;&#x4EEC;&#x4F1A;&#x901A;&#x8FC7;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x4F8B;&#x5B50;&#x6765;&#x6F14;&#x793A;&#x5982;&#x4F55;&#x901A;&#x8FC7;smart-socket&#x5F00;&#x53D1;&#x670D;&#x52A1;&#x7AEF;&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x7A0B;&#x5E8F;&#x3002;&#x4E3A;&#x7B80;&#x5316;&#x793A;&#x4F8B;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x4EA4;&#x4E92;&#x7684;&#x6570;&#x636E;&#x4E3A;&#x4E00;&#x4E2A;&#x6574;&#x578B;&#x6570;&#x636E;&#x3002;</p>
<h3 id="&#x4E00;&#x3001;&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;">&#x4E00;&#x3001;&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;</h3>
<p>&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#x670D;&#x52A1;&#x7AEF;&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x901A;&#x4FE1;&#x9075;&#x5FAA;&#x540C;&#x4E00;&#x5957;&#x534F;&#x8BAE;&#x89C4;&#x5219;&#xFF0C;&#x56E0;&#x6B64;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x7F16;&#x5199;&#x4E00;&#x4EFD;&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;&#x5B9E;&#x73B0;&#x5373;&#x53EF;&#xFF08;&#x5982;&#x679C;&#x662F;&#x8DE8;&#x8BED;&#x8A00;&#x5219;&#x9700;&#x8981;&#x5404;&#x81EA;&#x5B9E;&#x73B0;&#xFF09;&#x3002;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF0C;&#x534F;&#x8BAE;&#x7F16;&#x89E3;&#x7801;&#x7684;&#x9700;&#x8981;&#x5B9E;&#x73B0;&#x63A5;&#x53E3;Protocol&#x3002;</p>
<pre><code>public class IntegerProtocol implements Protocol&lt;Integer&gt; {

    private static final int INT_LENGTH = 4;

    @Override
    public Integer decode(ByteBuffer data, AioSession&lt;Integer&gt; session, boolean eof) {
        if (data.remaining() &lt; INT_LENGTH)
            return null;
        return data.getInt();
    }

    @Override
    public ByteBuffer encode(Integer s, AioSession&lt;Integer&gt; session) {
        ByteBuffer b = ByteBuffer.allocate(INT_LENGTH);
        b.putInt(s);
        b.flip();
        return b;
    }
}
</code></pre><p>&#x4E0A;&#x8FF0;&#x4EE3;&#x7801;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x4E00;&#x4E2A;&#x6574;&#x6570;&#x7684;&#x957F;&#x5EA6;&#x4E3A;4byte&#xFF0C;&#x6240;&#x4EE5;&#x53EA;&#x8981;&#x957F;&#x5EA6;&#x5927;&#x4E8E;&#x7B49;&#x4E8E;4&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x80FD;&#x89E3;&#x6790;&#x5230;&#x4E00;&#x4E2A;&#x6574;&#x6570;&#x3002;</p>
<blockquote>
<p>&#x503C;&#x5F97;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x901A;&#x8FC7;Protocol&#x5B9E;&#x73B0;&#x7F16;&#x7801;encode&#x7B97;&#x6CD5;&#x540E;&#xFF0C;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x9700;&#x8981;&#x786E;&#x4FDD;&#x8FD4;&#x56DE;&#x7684;ByteBuffer&#x662F;&#x51FA;&#x4E8E;&#x53EF;&#x8BFB;&#x72B6;&#x6001;&#x3002;&#x6B63;&#x5982;&#x4F8B;&#x5B50;&#x6240;&#x793A;&#xFF0C;&#x5B8C;&#x6210;&#x7F16;&#x7801;&#x540E;&#x6267;&#x884C;&#x4E86;<code>flip()</code>&#x65B9;&#x6CD5;&#x3002;</p>
</blockquote>
<h3 id="&#x4E8C;&#x3001;&#x6D88;&#x606F;&#x5904;&#x7406;">&#x4E8C;&#x3001;&#x6D88;&#x606F;&#x5904;&#x7406;</h3>
<p>&#x4E1A;&#x52A1;&#x6D88;&#x606F;&#x7684;&#x5904;&#x7406;&#x9700;&#x8981;&#x5B9E;&#x73B0;&#x63A5;&#x53E3;<code>MessageProcessor</code>&#xFF0C;&#x8BE5;&#x63A5;&#x53E3;&#x53EA;&#x6709;&#x4E24;&#x4E2A;&#x65B9;&#x6CD5;&#xFF1A;<code>process</code>,<code>stateEvent</code>&#x3002;&#x5176;&#x4E2D; <strong>stateEvent</strong>&#x7528;&#x4E8E;&#x5B9A;&#x4E49;AioSession&#x72B6;&#x6001;&#x673A;&#x7684;&#x76D1;&#x63A7;&#x4E0E;&#x5904;&#x7406;&#x3002;<strong>process</strong>&#x5219;&#x4F1A;&#x5904;&#x7406;&#x6BCF;&#x4E00;&#x4E2A;&#x63A5;&#x6536;&#x5230;&#x7684;&#x4E1A;&#x52A1;&#x6D88;&#x606F;&#x3002;</p>
<h4 id="&#x670D;&#x52A1;&#x7AEF;">&#x670D;&#x52A1;&#x7AEF;</h4>
<pre><code>public class IntegerServerProcessor implements MessageProcessor&lt;Integer&gt; {
    @Override
    public void process(AioSession&lt;Integer&gt; session, Integer msg) {
        Integer respMsg = msg + 1;
        System.out.println(&quot;&#x63A5;&#x53D7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x6570;&#x636E;&#xFF1A;&quot; + msg + &quot; ,&#x54CD;&#x5E94;&#x6570;&#x636E;:&quot; + (respMsg));
        try {
            session.write(respMsg);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void stateEvent(AioSession&lt;Integer&gt; session, StateMachineEnum stateMachineEnum, Throwable throwable) {

    }
}
</code></pre><h4 id="&#x5BA2;&#x6237;&#x7AEF;">&#x5BA2;&#x6237;&#x7AEF;</h4>
<pre><code>public class IntegerClientProcessor implements MessageProcessor&lt;Integer&gt; {
    private AioSession&lt;Integer&gt; session;

    @Override
    public void process(AioSession&lt;Integer&gt; session, Integer msg) {
        System.out.println(&quot;&#x63A5;&#x53D7;&#x5230;&#x670D;&#x52A1;&#x7AEF;&#x54CD;&#x5E94;&#x6570;&#x636E;&#xFF1A;&quot; + msg);
    }

    @Override
    public void stateEvent(AioSession&lt;Integer&gt; session, StateMachineEnum stateMachineEnum, Throwable throwable) {
        switch (stateMachineEnum) {
            case NEW_SESSION:
                this.session = session;
                break;
            default:
                System.out.println(&quot;other state:&quot; + stateMachineEnum);
        }

    }

    public AioSession&lt;Integer&gt; getSession() {
        return session;
    }
}
</code></pre><h3 id="&#x4E09;&#x3001;&#x542F;&#x52A8;&#x670D;&#x52A1;">&#x4E09;&#x3001;&#x542F;&#x52A8;&#x670D;&#x52A1;</h3>
<h4 id="&#x670D;&#x52A1;&#x7AEF;">&#x670D;&#x52A1;&#x7AEF;</h4>
<pre><code>public class IntegerServer {
    public static void main(String[] args) throws IOException {
        AioQuickServer&lt;Integer&gt; server = new AioQuickServer&lt;Integer&gt;(8888, new IntegerProtocol(), new IntegerServerProcessor());
        server.start();
    }
}
</code></pre><h4 id="&#x5BA2;&#x6237;&#x7AEF;">&#x5BA2;&#x6237;&#x7AEF;</h4>
<pre><code>public class IntegerClient {
    public static void main(String[] args) throws Exception {
        IntegerClientProcessor processor = new IntegerClientProcessor();
        AioQuickClient&lt;Integer&gt; aioQuickClient = new AioQuickClient&lt;Integer&gt;(&quot;localhost&quot;, 8888, new IntegerProtocol(), processor);
        aioQuickClient.start();
        processor.getSession().write(1);
        Thread.sleep(1000);
        aioQuickClient.shutdown();
    }
}
</code></pre><footer class="page-footer"><span class="copyright">Copyright &#xA9; smartboot.org 2018 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-06-17 18:38:44
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 前言">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"快速上手","level":"1.2.2","depth":2,"next":{"title":"源码篇","level":"1.2.3","depth":2,"ref":"","articles":[{"title":"准备工作","level":"1.2.3.1","depth":3,"path":"smart-socket/first/1-ready.md","ref":"smart-socket/first/1-ready.md","articles":[]},{"title":"核心接口","level":"1.2.3.2","depth":3,"path":"smart-socket/first/2-core-interface.md","ref":"smart-socket/first/2-core-interface.md","articles":[]},{"title":"枚举状态","level":"1.2.3.3","depth":3,"path":"smart-socket/first/3-enum.md","ref":"smart-socket/first/3-enum.md","articles":[]},{"title":"服务配置IoServerConfig","level":"1.2.3.4","depth":3,"path":"smart-socket/first/4-IoServerConfig.md","ref":"smart-socket/first/4-IoServerConfig.md","articles":[]},{"title":"服务端AioQuickServer","level":"1.2.3.5","depth":3,"path":"smart-socket/first/5-AioQuickServer.md","ref":"smart-socket/first/5-AioQuickServer.md","articles":[]},{"title":"客户端AioQuickClient","level":"1.2.3.6","depth":3,"path":"smart-socket/first/6-AioQuickClient.md","ref":"smart-socket/first/6-AioQuickClient.md","articles":[]},{"title":"通信会话AioSession","level":"1.2.3.7","depth":3,"path":"smart-socket/first/7-AioSession.md","ref":"smart-socket/first/7-AioSession.md","articles":[]},{"title":"读写回调","level":"1.2.3.8","depth":3,"path":"smart-socket/first/8-CompletionHandler.md","ref":"smart-socket/first/8-CompletionHandler.md","articles":[]}]},"previous":{"title":"前言","level":"1.2.1","depth":2,"path":"smart-socket/README.md","ref":"smart-socket/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-sharing","search-plus","expandable-chapters-interactive","tbfed-pagefooter","github","github-buttons","edit-link"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy smartboot.org 2018","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"github":{"url":"https://github.com/smartboot/smart-socket"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"expandable-chapters-interactive":{},"github-buttons":{"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]},"edit-link":{"label":"Edit This Page","base":"https://gitee.com/smartboot/docs/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"smartboot 中文指南","language":"en","gitbook":"*","description":"本文涵盖了smartboot下所有项目的技术手册"},"file":{"path":"smart-socket/quickStart.md","mtime":"2018-06-17T10:38:44.341Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-09-23T08:59:34.607Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

